import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
import consultation from "../router/consultation";
import assitransfer from "../router/assitransfer";
import assistant from "../router/assistant";
import login from "../view/login";
import search from '@/components/search'
export default new VueRouter({
  routes: [
    {
      path: "/",
      component: login,
      children: [
        {
            path:'/',
            component: () => import("@/view/login/LoginPssword"),
        },
        {
          path: "LoginPssword",
          component: () => import("@/view/login/LoginPssword"),
        },
        {
            path: "LoginSms",
            component: () => import("@/view/login/LoginSms"),
        },
      ],
    },
    {
      path:'/search',
      component:search
    },
    ...consultation,
    ...assistant,
    ...assitransfer,
  ],
});
